﻿<Window x:Class="FastAdmin.GerenciarPagamento"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Loaded="Window_Loaded"
        Title="Gerenciar Pagamento" Height="300" Width="718">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" Margin="10 0 0 0" VerticalAlignment="Center">
            <TextBlock Text="Valor Total : "/>
            <TextBlock x:Name="txtTotal"/>
            
            <TextBlock Text="Desconto : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtDesconto"/>

            <TextBlock Text="Valor Final : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtFinal"/>

            <TextBlock Text="Dia Vencimento : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtDiaVencimento"/>
            
            <CheckBox Content="Mensal" x:Name="chkMensal" IsEnabled="False" Margin="10 0 0 0"/>
        </StackPanel>
        
        <Expander Header="Parcelas" Grid.Row="1" Margin="10 0 0 0">
            <Expander.Content>
                <DataGrid AutoGenerateColumns="False" x:Name="dgParcelas" Margin="0 0 10 10" IsReadOnly="True" AlternationCount="2" RowBackground="AliceBlue" 
                  AlternatingRowBackground="LightBlue" SelectionMode="Single" VerticalAlignment="Top">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Número" Binding="{Binding NumeroParcela}"/>
                        <DataGridTextColumn Header="Total" Binding="{Binding Total}"/>
                        <DataGridTextColumn Header="Vencimento" Binding="{Binding VencimentoShort}"/>
                        <DataGridTemplateColumn Header="Pago">
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <CheckBox IsChecked="{Binding Pago}" IsEnabled="False"/>
                                </DataTemplate>    
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                    </DataGrid.Columns>
                </DataGrid>
            </Expander.Content>
        </Expander>
    </Grid>
</Window>
